package base;

public class MyClassLoader {
    public static void main(String[] args) {

        ClassLoader classLoader = MyClassLoader.class.getClassLoader();
        boolean needContinue = true;

        while (needContinue) {
            System.out.println(classLoader);
            if (classLoader == null) {
                needContinue = false;
            } else {
                classLoader = classLoader.getParent();
            }
        }
    }

}
